package com.hzw.service.impl;


import com.hzw.bean.LikeRelation;
import com.hzw.dao.LikeRelationMapper;
import com.hzw.service.LikeRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/5/12.
 */
@Service
public class LikeRelationServiceImpl implements LikeRelationService {
    @Resource
    private LikeRelationMapper likeRelationMapper;

    @Override
    public LikeRelation selectByTwoId(String userId, String articleId) {
        return likeRelationMapper.selectByTwoId(userId, articleId);
    }

//    @Override
//    public int getLikeFlag(String userId, String articleId) {
//        return likeRelationMapper.getLikeFlag(userId,articleId);
//    }

}
